import focus from "@/directives/vFocus.js";
import copy from "@/directives/vCopy.js";
// 自定义指令名称 xxx ==> v-xxx
const directives = {
  focus,
  copy,
};

export default {
  // 批量注册自定义指令
  install(app) {
    Object.keys(directives).forEach((key) => {
      app.directive(key, directives[key]);
    });
  },
};
